<template>
  <div>
    <router-view></router-view>
  </div>
</template>
<script>
import { mapGetters } from "vuex";
export default {
  name: "",
  components: {},
  props: {},
  data() {
    return {};
  },
  computed: {
    ...mapGetters(["user"]),
  },
  created() {
    console.log(this.user.name);
    this.$store.dispatch("user/getUser");
    console.log(this.user.name);
  },
  mounted() {},
  methods: {},
  watch: {},
};
</script>
<style lang='scss' scoped>
</style>